<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="utf-8">
    <title>E接口监测系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="icon" href="layuimini/images/favicon.ico">
    <link rel="stylesheet" href="layuimini/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="layuimini/css/layuimini.css?v=2.0.4.2"  media="all">
    <link rel="stylesheet" href="layuimini/css/themes/default.css" media="all">
    <link rel="stylesheet" href="layuimini/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <link rel="stylesheet" href="js/jquery/jquery-ui.css" media="all">
    <link rel="stylesheet" type="text/css" th:href="@{/element-ui/lib/theme-chalk/index.css}"/>
    <link  th:href="@{/css/other.css}" rel="stylesheet"/>
    <link  th:href="@{/css/dialog.css}" rel="stylesheet"/>
    <link th:href="@{/svg/iconfont.css}" rel="stylesheet"/>
    <!--[if lt IE 9]>
    <script src="layuimini/js/html5.min.js"></script>
    <script src="layuimini/js/respond.min.js"></script>
    <![endif]-->
    <style id="layuimini-bg-color">
    </style>
    <style>
        .layui-layout-admin .layui-body {
            position: absolute;
            top: 60px;
            padding-bottom: 32px;
        }
        .layui-layout-admin .layui-side {
            top: 64px !important;
            bottom: 32px !important;
        }
        .ft_custom {
            position: fixed;
            bottom: 0;
            width: 100%;
            height: 32px; /* 固定高度为32px */
            background-color: white; /* 或者设置为与页面背景色相同的颜色 */
            z-index: 1000; /* 设置较高的 z-index 确保覆盖其他元素 */
            color: rgb(102, 102, 102);
            text-align: center;
            font-size: 14px;
            display: flex; /* 使用flex布局 */
            align-items: center; /* 垂直居中 */
            justify-content: center; /* 水平居中 */
            padding: 0; /* 移除内边距 */
        }
        .layui-layer-title{
            height: 69px !important;
            background: #f5f5f5 !important;;
            /*padding: 15px 20px 15px !important;*/
            text-align:left !important;;
            font-family: Microsoft YaHei, Microsoft YaHei !important;;
            font-weight: bold !important;;
            font-size: 16px !important;;
            color: #666666 !important;;
            line-height: 69px !important;;
            text-align: left !important;;
            font-style: normal !important;;
            text-transform: none !important;;
            border-radius: 5px !important ;
            border-bottom: #ebebeb 2px solid !important;;
        }
        .layui-layer{
            border-radius: 5px !important ;
        }
        .styled-button {
            height: 30px;
            width: 80px;
            background-color: #1891FF; /* 蓝色背景 */
            color: white; /* 白色文字 */
            border: none; /* 去掉边框 */
            border-radius: 5px; /* 圆角 */
            cursor: pointer; /* 鼠标悬停时显示手型 */
            font-size: 14px; /* 字体大小 */
            transition: background-color 0.3s; /* 平滑过渡效果 */
        }

        .styled-button:hover {
            background-color: #0056b3; /* 悬停时更深的蓝色 */
        }

        .styled-button:active {
            background-color: #004085; /* 点击时更深的蓝色 */
        }

        /*弹窗样式*/
        .layui-layer-content{
            height: 100%;
        }

        .table-container {
            min-height: 509px;
            max-height: 509px;
            overflow-y: auto;
            /*padding: 20px;*/
            padding-left: 31px;
            padding-top: 17px;
            /*background-color: #f8f9fa; !* 背景颜色 *!*/
            background-color: #FFFFFF;
            border-radius: 8px; /* 圆角 */
        }

        .table-header {
            margin-bottom: 17px;
            font-family: Microsoft YaHei, Microsoft YaHei,sans-serif;
            font-weight: bold;
            font-size: 14px;
            color: #707070;
            text-align: left;
            font-style: normal;
            text-transform: none;
        }

        .table-header-span{
            font-family: Microsoft YaHei, Microsoft YaHei,sans-serif;
            font-weight: 400;
            font-size: 12px;
            color: #707070;
            text-align: left;
            font-style: normal;
            text-transform: none;
            margin-left: 8px;
        }

        .layui-layer-setwin a{
            width: 17px;
            height: 17px;
            margin-top: 13px;
            font-size: 17px;
        }

        .custom_td_class,
        .custom_td_input_class{
            vertical-align: middle;
        }

        /*快捷菜单弹窗表格样式*/
        .checkbox-column {
            /*margin: 20px; !* 列间距 *!*/
            float: left; /* 左浮动 */
            width: calc(25%); /* 列宽 */
            box-sizing: border-box; /* 包含内边距和边框 */
        }

        .checkbox-column h3 {
            font-family: Microsoft YaHei, Microsoft YaHei,sans-serif;
            font-weight: bold;
            font-size: 14px;
            color: #707070;
            text-align: left;
            font-style: normal;
            text-transform: none;
        }

        .checkbox-label {
            margin-top: 11px;
            display: block;
            /*margin: 5px 0; !* 复选框上下间距 *!*/
            /*width: 89px;*/
            height: 16px;

            font-family: Microsoft YaHei, Microsoft YaHei,serif;
            font-weight: 400;
            font-size: 14px;
            color: #666666;
            line-height: 0px;
            text-align: left;
            font-style: normal;
            text-transform: none;
        }

        .clearfix::after {
            content: "";
            clear: both;
            display: table;
        }

        .tag{
            font-family: Microsoft YaHei, Microsoft YaHei,sans-serif;
            font-weight: 400;
            font-size: 14px;
            color: #FFFFFF;
            text-align: left;
            font-style: normal;
            text-transform: none;
        }

    </style>
</head>
<body class="layui-layout-body layuimini-all">
<div id="app" class="layui-layout layui-layout-admin">

    <div class="layui-header header">
        <div class="layui-logo layuimini-logo" style="width:220px;"></div>
        <div class="layuimini-tool" style="position:absolute !important;left:270px;width: 100%"></div>

        <div class="layuimini-header-content">
            <a>
                <div class="layuimini-tool" ><i title="收起" class="fa fa-outdent" data-side-fold="1"></i></div>
            </a>

            <!--电脑端头部菜单-->
            <ul class="layui-nav layui-layout-left layuimini-header-menu layuimini-menu-header-pc layuimini-pc-show">
            </ul>

            <!--手机端头部菜单-->
            <ul class="layui-nav layui-layout-left layuimini-header-menu layuimini-mobile-show">
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="fa fa-list-ul"></i> 选择模块</a>
                    <dl class="layui-nav-child layuimini-menu-header-mobile">
                    </dl>
                </li>
            </ul>

            <ul class="layui-nav layui-layout-right">

                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:;" data-refresh="刷新"><i class="fa fa-refresh"></i></a>
                </li>
                <!--                <li class="layui-nav-item" lay-unselect>-->
                <!--                    <a href="javascript:;" data-clear="清理" class="layuimini-clear"><i class="fa fa-trash-o"></i></a>-->
                <!--                </li>-->
                <li class="layui-nav-item mobile layui-hide-xs" lay-unselect>
                    <a href="javascript:;" data-check-screen="full"><i class="fa fa-arrows-alt"></i></a>
                </li>
                <li class="layui-nav-item layuimini-setting">
                    <a href="javascript:;" th:text="${nickName}"></a>
                    <dl class="layui-nav-child">
                        <span id="account" hidden th:text="${session.SPRING_SECURITY_CONTEXT.authentication.principal.authorities[0]}"></span>
                        <span id="userName" hidden th:text="${session.SPRING_SECURITY_CONTEXT.authentication.principal.username}"></span>
                        <dd>
                            <a href="javascript:;" @click="updateUserOpen" class="updataInfo11">修改信息</a>
                        </dd>
                        <dd>
                            <a href="javascript:;" @click="updatePwdOpen" class="updataPwd">修改密码</a>
                            <hr>
                        </dd>
                        <dd>
                            <a href="javascript:;" class="login-out">退出登录</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item layuimini-select-bgcolor" lay-unselect>
                    <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                </li>
            </ul>
        </div>
    </div>

    <!-- 修改用户信息、密码弹框 -->
    <div>
        <el-dialog title="修改用户信息" class="dialogCss" :close-on-click-modal="false" :visible.sync="updateUserDialog" custom-class="updateUser-dialog">
            <div class="bodyDiv">
                <div>
                    <el-form id="updateUserForm" ref="updateUserForm" :model="updateUserForm" label-position="right" label-width="100px">
                        <el-form-item label="用户账号：">
                            <el-input v-model="updateUserForm.account" disabled></el-input>
                        </el-form-item>
                        <el-form-item label="用户名称：" prop="userName">
                            <el-input v-model="updateUserForm.userName" placeholder="请输入用户名称"></el-input>
                        </el-form-item>
                        <el-form-item label="所属站段：" prop="sectionName">
                            <el-select v-show="updateUserShow.updateSectionNameShow" v-model="updateUserForm.sectionName" placeholder="请选择所属站段" @change="sectionNameSelectChange(updateUserForm.sectionName)">
                                <el-option v-for="item in sectionNameOption" :key="item.value" :label="item.label" :value="item.value"></el-option>
                            </el-select>
                            <el-input v-show="updateUserShow.updateSectionNameShow == false" v-model="updateUserForm.sectionName" style="width: 230px;" placeholder="请输入所属站段"></el-input>
                        </el-form-item>
                        <el-form-item label="所属车间：" prop="workshop">
                            <el-select v-show="updateUserShow.updateworkshopShow" v-model="updateUserForm.workshop" placeholder="请选择所属车间" @change="workshopSelectChange(updateUserForm.workshop)">
                                <el-option v-for="item in workshopOption" :key="item.value" :label="item.label" :value="item.value"></el-option>
                            </el-select>
                            <el-input v-show="updateUserShow.updateworkshopShow == false" v-model="updateUserForm.workshop" placeholder="请输入所属车间"></el-input>
                        </el-form-item>
                        <el-form-item label="所属工区：" prop="workArea">
                            <el-select v-show="updateUserShow.updateworkAreaShow" v-model="updateUserForm.workArea" placeholder="请选择所属工区" @change="workAreaSelectChange(updateUserForm.workArea)">
                                <el-option v-for="item in workAreaOption" :key="item.value" :label="item.label" :value="item.value"></el-option>
                            </el-select>
                            <el-input v-show="updateUserShow.updateworkAreaShow == false" v-model="updateUserForm.workArea" placeholder="请输入所属工区"></el-input>
                        </el-form-item>
                    </el-form>
                </div>
                <div>
                    <el-button @click="updateUserClose('updateUserForm')">取消</el-button>
                    <el-button type="primary" @click="updateUser('updateUserForm')">保存</el-button>
                </div>
            </div>
        </el-dialog>
    </div>
    <div>
        <el-dialog title="修改用户密码" id="updatePwdDialog" class="dialogCss" :close-on-click-modal="false" :visible.sync="updatePwdDialog">
            <div class="bodyDiv">
                <div>
                    <el-form :model="updatePwdForm" ref="updatePwdForm" status-icon :rules="updatePwdRules"  label-position="right" label-width="100px">
                        <!--                    <div style="height: 30px;">当前登录的用户为：{{ updatePwdForm.updateAccount }}</div>-->
                        <el-form-item label="新密码：" prop="updatePwd">
                            <el-input type="password" v-model="updatePwdForm.updatePwd"  autocomplete="off"></el-input>
                        </el-form-item>
                        <el-form-item label="确认密码：" prop="checkPass">
                            <el-input type="password" v-model="updatePwdForm.checkPass" autocomplete="off"></el-input>
                        </el-form-item>
                    </el-form>
                </div>
                <div>
                    <el-button @click="updatePwdClose('updatePwdForm')">取 消</el-button>
                    <el-button type="primary" @click="updatePwd('updatePwdForm')">确 定</el-button>
                </div>
            </div>
        </el-dialog>
    </div>

    <!--无限极左侧菜单-->
    <div class="layui-side layui-bg-black layuimini-menu-left" style="width:220px">
    </div>

    <!--初始化加载层-->
    <div class="layuimini-loader">
        <div class="layuimini-loader-inner"></div>
    </div>

    <div class="layui-body" style="left:220px">

        <div class="layuimini-tab layui-tab-rollTool layui-tab" lay-filter="layuiminiTab" lay-allowclose="true">
            <ul class="layui-tab-title">
                <!--                <li></li>-->
            </ul>
            <div class="layui-tab-control">
                <li class="layuimini-tab-roll-left layui-icon layui-icon-left"></li>
                <li class="layuimini-tab-roll-right layui-icon layui-icon-right"></li>
                <li class="layui-tab-tool layui-icon layui-icon-down">
                    <ul class="layui-nav close-box">
                        <li class="layui-nav-item">
                            <a href="javascript:;"><span class="layui-nav-more"></span></a>
                            <dl class="layui-nav-child">
                                <dd><a href="javascript:;" layuimini-tab-close="current">关 闭 当 前</a></dd>
                                <dd><a href="javascript:;" layuimini-tab-close="other">关 闭 其 他</a></dd>
                                <dd><a href="javascript:;" layuimini-tab-close="all">关 闭 全 部</a></dd>
                            </dl>
                        </li>
                    </ul>
                </li>
            </div>
            <div class="layui-tab-content">
                <!--                <div id="layuiminiHomeTabIframe" class="layui-tab-item layui-show "></div>-->
            </div>
        </div>
    </div>

    <div id="ft" class="ft_custom" >CopyRight&nbsp;©&nbsp;&nbsp;2023-<span id="datetime"></span> 广州市广源电子科技有限公司 版权所有</div>
</div>
<!-- 获取请求上下文-->
<input id="ctxPath" th:value="${#httpServletRequest.getContextPath()}" hidden>
<script src="layuimini/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="layuimini/js/lay-config.js?v=2.0.0" charset="utf-8"></script>
<script src="js/jquery/jquery-3.3.1.js" charset="utf-8"></script>
<script src="js/jquery/jquery-ui.js" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/vue/vue.js}"></script>
<script type="text/javascript" th:src="@{/vue/moment.min.js}"></script>
<script type="text/javascript" th:src="@{/element-ui/lib/index.js}"></script>
<script src="templatesJs/index.js" charset="utf-8"></script>
</body>
<script th:inline="javascript">
    window.sessionStorage.setItem("userName",'[[${session.SPRING_SECURITY_CONTEXT.authentication.principal.username}]]');
    window.sessionStorage.setItem("ctxPath",'[[${#httpServletRequest.getContextPath()}]]');
    window.sessionStorage.setItem("authorities",'[[${session.SPRING_SECURITY_CONTEXT.authentication.principal.authorities}]]');
    window.sessionStorage.setItem("nickName",'[[${nickName}]]');
</script>

</html>